﻿using System;
using NHibernate.Mapping.ByCode;
using SellAndBuy.Application.Query.DTOs;

namespace SellAndBuy.Infrastructure.Data.Query.Mappings
{
    public class PictureInfoDTOMap
    {
        public static Action<IComponentElementMapper<PictureInfoDTO>> Mapping()
        {
            return c =>
            {
                c.Property(p => p.Title);
                c.Property(p => p.FileName);
                c.Property(p => p.IsMain);
                c.Property(p => p.Picture);
            };
        }
    }
}